/* **************************************************
 * User Group Manager
 *      author:     Baskin Tapkan
 *          written for Code Plex
 *              April - 2008
 *                  http://tapkan.com
 * ****************************************************
 */

using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;

namespace UserGroupManager
{
    public partial class Main : Form
    {
        public Main()
        {
            InitializeComponent();
        }

        private void Main_Load(object sender, EventArgs e)
        {
            txtComputerName.Text = Environment.MachineName.ToString();
        }

        private void btnCreateUser_Click(object sender, EventArgs e)
        {
            NewUser nu = new NewUser(txtComputerName.Text);
            nu.ShowDialog();
        }

        private void btnEditUser_Click(object sender, EventArgs e)
        {
            EditUser eu = new EditUser(txtComputerName.Text);
            eu.ShowDialog();
        }

        private void btnDeleteUser_Click(object sender, EventArgs e)
        {
            DeleteUser du = new DeleteUser(txtComputerName.Text);
            du.ShowDialog();
        }

        private void btnCreateGroup_Click(object sender, EventArgs e)
        {
            NewGroup ng = new NewGroup(txtComputerName.Text);
            ng.ShowDialog();
        }

        private void btnEditGroup_Click(object sender, EventArgs e)
        {
            EditGroup eg = new EditGroup(txtComputerName.Text);
            eg.ShowDialog();
        }

        private void btnDeleteGroup_Click(object sender, EventArgs e)
        {
            DeleteGroup dg = new DeleteGroup(txtComputerName.Text);
            dg.ShowDialog();
        }

        private void btnMemberOf_Click(object sender, EventArgs e)
        {
            UserGrpMembership ugm = new UserGrpMembership(txtComputerName.Text);
            ugm.ShowDialog();
        }


    }
}